import { useEffect } from "react";
import CompA from "./comp-a";
import CompB from "./comp-b";
import { useDispatch } from "react-redux";
import { getCourseListAction } from "../../store/features/course";
import { AppDispatch } from "../../store";
export interface ITestProps {}

export default function Test(props: ITestProps) {
  const dispatch: AppDispatch = useDispatch();
  useEffect(() => {
    dispatch(getCourseListAction());
  }, []);
  return (
    <div>
      <h1>测试RTK状态机</h1>
      <CompA />
      <CompB />
    </div>
  );
}
